package Visual;

import java.awt.Color;
import javax.swing.*;
import java.awt.*;
public class FormMenu extends javax.swing.JFrame {

    JMenuBar menu = new JMenuBar();
    public int color;
    JLabel a = new JLabel();

    public FormMenu() {
        initComponents();
        color = -90540;
        this.getContentPane().setBackground(new Color(color));
       // a.setIcon(new ImageIcon(getClass().getResource("/Visual/Recursos/LOGOAUTOMOTORA.png")));
        this.add(a);
        a.setBounds(10, 30, 730, 300);
        this.setMinimumSize(new Dimension(800, 600)); 
        this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        this.setTitle("Menu");
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();
        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu3 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenuBar4 = new javax.swing.JMenuBar();
        jMenu9 = new javax.swing.JMenu();
        jMenu10 = new javax.swing.JMenu();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenu12 = new javax.swing.JMenu();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenu13 = new javax.swing.JMenu();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar3 = new javax.swing.JMenuBar();
        jMenu5 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        Color = new javax.swing.JMenuItem();
        Marca = new javax.swing.JMenuItem();
        Modelo = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        Clientes = new javax.swing.JMenuItem();
        emp = new javax.swing.JMenu();
        jMenu7 = new javax.swing.JMenu();
        Encargado = new javax.swing.JMenuItem();
        Mecanico = new javax.swing.JMenuItem();
        Vendedores = new javax.swing.JMenuItem();
        con = new javax.swing.JMenu();
        Historial = new javax.swing.JMenuItem();
        Importadores = new javax.swing.JMenuItem();
        Service = new javax.swing.JMenuItem();
        Ventas = new javax.swing.JMenuItem();

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        jMenu3.setText("File");
        jMenuBar2.add(jMenu3);

        jMenu4.setText("Edit");
        jMenuBar2.add(jMenu4);

        jMenuItem5.setText("jMenuItem5");

        jMenuItem3.setText("jMenuItem3");

        jMenuItem8.setText("jMenuItem8");

        jMenuItem12.setText("jMenuItem12");

        jMenu9.setText("File");
        jMenuBar4.add(jMenu9);

        jMenu10.setText("Edit");
        jMenuBar4.add(jMenu10);

        jMenuItem15.setText("jMenuItem15");

        jMenu12.setText("jMenu12");

        jMenuItem16.setText("jMenuItem16");

        jMenu13.setText("jMenu13");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(255, 153, 51));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Visual/Recursos/LOGOAUTOMOTORA.png"))); // NOI18N
        jLabel1.setText("jLabel1");

        jMenuBar3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jMenuBar3.setForeground(new java.awt.Color(153, 0, 0));
        jMenuBar3.setFont(new java.awt.Font("Comic Sans MS", 1, 14)); // NOI18N

        jMenu5.setText("Autos");
        jMenu5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu5ActionPerformed(evt);
            }
        });

        jMenuItem1.setText("Autos");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem1);

        Color.setText("Color");
        Color.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ColorActionPerformed(evt);
            }
        });
        jMenu5.add(Color);

        Marca.setText("Marcas");
        Marca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MarcaActionPerformed(evt);
            }
        });
        jMenu5.add(Marca);

        Modelo.setText("Modelos");
        Modelo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModeloActionPerformed(evt);
            }
        });
        jMenu5.add(Modelo);

        jMenuBar3.add(jMenu5);

        jMenu6.setText("Cliente");

        Clientes.setText("Clientes");
        Clientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ClientesActionPerformed(evt);
            }
        });
        jMenu6.add(Clientes);

        jMenuBar3.add(jMenu6);

        emp.setBorder(null);
        emp.setText("Administracion");

        jMenu7.setText("Empleados");

        Encargado.setText("Encargado");
        Encargado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EncargadoActionPerformed(evt);
            }
        });
        jMenu7.add(Encargado);

        Mecanico.setText("Mecanico");
        Mecanico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MecanicoActionPerformed(evt);
            }
        });
        jMenu7.add(Mecanico);

        Vendedores.setText("Vendedores");
        Vendedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                VendedoresActionPerformed(evt);
            }
        });
        jMenu7.add(Vendedores);

        emp.add(jMenu7);

        con.setText("Controles");

        Historial.setText("Historial");
        Historial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HistorialActionPerformed(evt);
            }
        });
        con.add(Historial);

        Importadores.setText("Importador");
        Importadores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ImportadoresActionPerformed(evt);
            }
        });
        con.add(Importadores);

        Service.setText("Services");
        Service.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ServiceActionPerformed(evt);
            }
        });
        con.add(Service);

        Ventas.setText("Ventas");
        Ventas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                VentasActionPerformed(evt);
            }
        });
        con.add(Ventas);

        emp.add(con);

        jMenuBar3.add(emp);

        setJMenuBar(jMenuBar3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 654, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(69, 69, 69)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(184, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenu5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu5ActionPerformed

    }//GEN-LAST:event_jMenu5ActionPerformed

    private void MarcaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MarcaActionPerformed
        FormMarcas id = new FormMarcas();
        id.setVisible(true);
    }//GEN-LAST:event_MarcaActionPerformed

    private void EncargadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EncargadoActionPerformed
        FormEncargado id = new FormEncargado();
        id.setVisible(true);
    }//GEN-LAST:event_EncargadoActionPerformed

    private void MecanicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MecanicoActionPerformed
        FormMecanico id = new FormMecanico();
        id.setVisible(true);
    }//GEN-LAST:event_MecanicoActionPerformed

    private void HistorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HistorialActionPerformed
        FormHistorial id = new FormHistorial();
        id.setVisible(true);
    }//GEN-LAST:event_HistorialActionPerformed

    private void ModeloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModeloActionPerformed
        FormModelo id = new FormModelo();
        id.setVisible(true);
    }//GEN-LAST:event_ModeloActionPerformed

    private void ClientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClientesActionPerformed
        FormCliente id = new FormCliente();
        id.setVisible(true);
    }//GEN-LAST:event_ClientesActionPerformed

    private void ColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ColorActionPerformed
        FormColor id = new FormColor();
        id.setVisible(true);
    }//GEN-LAST:event_ColorActionPerformed

    private void VendedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VendedoresActionPerformed
        FormVendedor id = new FormVendedor();
        id.setVisible(true);
    }//GEN-LAST:event_VendedoresActionPerformed

    private void ImportadoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ImportadoresActionPerformed
        FormImportador id = new FormImportador();
        id.setVisible(true);
    }//GEN-LAST:event_ImportadoresActionPerformed

    private void ServiceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ServiceActionPerformed
        FormService id = new FormService();
        id.setVisible(true);
    }//GEN-LAST:event_ServiceActionPerformed

    private void VentasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VentasActionPerformed
        FormVentas id = new FormVentas();
        id.setVisible(true);
    }//GEN-LAST:event_VentasActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        FormAutos id = new FormAutos();
        id.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FormMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FormMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FormMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FormMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FormMenu().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem Clientes;
    private javax.swing.JMenuItem Color;
    private javax.swing.JMenuItem Encargado;
    private javax.swing.JMenuItem Historial;
    private javax.swing.JMenuItem Importadores;
    private javax.swing.JMenuItem Marca;
    private javax.swing.JMenuItem Mecanico;
    private javax.swing.JMenuItem Modelo;
    private javax.swing.JMenuItem Service;
    private javax.swing.JMenuItem Vendedores;
    private javax.swing.JMenuItem Ventas;
    private javax.swing.JMenu con;
    private javax.swing.JMenu emp;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu12;
    private javax.swing.JMenu jMenu13;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenu jMenu7;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuBar jMenuBar3;
    private javax.swing.JMenuBar jMenuBar4;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem8;
    // End of variables declaration//GEN-END:variables
}
